/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:岁亮亮
 * Date:2024-02-03
 * TIME:9:40
 */
public class Test2 {
    public static void main(String[] args) {
        BinaryTree2 binaryTree2=new BinaryTree2();
        BinaryTree2.TreeNode root=binaryTree2.creat2();
        binaryTree2.preOder(root);
        System.out.println();
        binaryTree2.preOderNor(root);
        System.out.println();
        binaryTree2.inOder(root);
        System.out.println();
        binaryTree2.inOderNor(root);
        System.out.println();
        binaryTree2.outOder(root);
        System.out.println();
        binaryTree2.outOderNor(root);

        /*System.out.println("=============");
        System.out.println("树的结点个数   "+binaryTree2.getTreeNodeCount1(root));
        System.out.println("树的结点个数   "+binaryTree2.getTreeNodeCount2(root));
        System.out.println("=============");
        System.out.println("叶子的结点个数  "+binaryTree2.getLeafNodeCount1(root));
        System.out.println("叶子的结点个数  "+binaryTree2.getLeafNodeCount2(root));
        System.out.println("=============");
        System.out.println("树的层次结点个数  "+binaryTree2.getfloorNodeCount(root, 5));
        System.out.println("=============");
        System.out.println("树的层次  "+binaryTree2.getFloorCount(root));
        System.out.println(binaryTree2.find(root, 'A'));*/


    }
}
